import subprocess
from threading import Thread


def te(page):
    subprocess.run(
        f"pytest {page}-s --alluredir=report;"
        "allure generate report -o html --clean;", shell=True)


if __name__ == '__main__':
        thread = []
        page = ["page1", "page2"]
        for i in range(3):
            t = Thread(target=te, args=(page,))
            thread.append(t)
        for y in thread:
            y.start()
